package edu.lnu.ums.entities;

import edu.lnu.ums.entities.processes.CourseWork;
import edu.lnu.ums.entities.processes.ScientificWork;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Student extends Studying {
    private static final long serialVersionUID = 1L;

    @Column
    private Integer course;

    @ManyToOne
    @JoinColumn
    private StudentGroup studentGroup;

    public StudentGroup getStudentGroup() {
        return studentGroup;
    }

    public void setStudentGroup(StudentGroup studentGroup) {
        this.studentGroup = studentGroup;
    }

    public Integer getCourse() {
        return course;
    }

    public void setCourse(Integer course) {
        this.course = course;
    }

     public Class<?> getScientificWorkClass() {
        return CourseWork.class;
    }
}
